<?php
namespace Ekadmin\Controller;
use Think\Controller;
class CommonController extends Controller {
    protected $uniacid = 1;
    public function _initialize(){

//        $this->check_login();
//        $current_url = get_url();
//        $key = 'addons/' . WE7_MODULE_NAME;
        $we7_url = 'https://'.$_SERVER['SERVER_NAME'];
        $this->assign('logout',$we7_url);

        $this->getConfig2();
    }
    protected function getConfig2()
    {

            $config = M('config')->where(['uniacid'=>$this->uniacid])->find();


        C($config);

        
        return true;
    }



    protected function check_login()
    {

        $account = session('we8');
        if(empty($account)){
            $this->error('登录已超时');
        }

        $this->uniacid = $account['acid'];
//        if(!$this->acid){
//            $this->acid = 1;
//
//        }





    }
    


    


}